﻿@{
    Layout = null;
}

@{  Html.Telerik().Window()
        .Name("Window")
        .Title("Submit feedback")
        .Content(@<text>
    @using (Html.BeginForm("popupform", "window", FormMethod.Post, new { id = "feedback-form" }))
    {
        <p class="note">
            This is just an example, sent data will <strong>not</strong> be saved.</p>
                
        @Html.LabelFor(model => model.Name)
        @Html.TextBoxFor(model => model.Name)
        @Html.ValidationMessageFor(model => model.Name)
        @Html.LabelFor(model => model.Email)
        @Html.TextBoxFor(model => model.Email)
        @Html.ValidationMessageFor(model => model.Email)
        @Html.LabelFor(model => model.Comment)
        @(Html.Telerik().EditorFor(model => model.Comment)
                        .Encode(false)
                        .Tools(tools => tools
                            .Clear()
                            .Bold().Italic().Separator()
                            .InsertOrderedList().InsertUnorderedList().Separator()
                            .Indent().Outdent().Separator()
                            .CreateLink()
                        ))
        @Html.ValidationMessageFor(model => model.Comment)
        <div class="form-actions">
            <button type="submit" class="t-button t-state-default">
                Submit feedback!</button>
        </div>
    }
    </text>)
        .Width(400)
        .Draggable(true)
        .Modal(true)
        .Visible(false)
        .Render();
}
